package org.bocs.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.bocs.entity.ProductComments;
import org.bocs.entity.ProductCommentsVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductCommentsDao extends BaseMapper<ProductComments> {

    /**
     * 根据商品id分页查询评论信息
     * @param productId 商品ID
     * @param start 起始索引
     * @param limit 查询条数
     * @return
     */
    public List<ProductCommentsVO> selectCommonsByProductId(@Param("productId") String productId, @Param("start") int start, @Param("limit") int limit);

}
